//ctrl+alt+l  格式化代码
//点击project那个小风车可以定位到正在编写的文件夹

package cn.edu.ctbu.lab.domain;


import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Entity(name = "tb_teacher")
@Data
public class Teacher implements Serializable {


    /**
     * id,主键，自增
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 教师名
     */
    @NotNull
    private String name;

    /**
     * 教师密码
     */
    private String password;

    /**
     * 工号
     */
    private String no;

}
